angular.module('CBO').config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        $stateProvider.
            //料品
            state('index.ItemMaster', {
                url: '/ItemMaster/Edit',
                templateUrl: 'modules/CBO/client/views/ItemMaster.client.view.html',
                controller: 'ItemMasterController',
                access: { requiredAuthentication: true }
            }).
            state('index.ItemMasterById', {
                url: '/ItemMaster/Edit/:id',
                templateUrl: 'modules/CBO/client/views/ItemMaster.client.view.html',
                controller: 'ItemMasterController',
                access: { requiredAuthentication: true }
            }).
            state('index.ItemMasterList', {
                url: '/ItemMaster/List',
                templateUrl: 'modules/CBO/client/views/ItemMasterList.client.view.html',
                controller: 'ItemMasterListController',
                access: { requiredAuthentication: true }
            }).
            //作业
            state('index.Work', {
                url: '/Work/Edit',
                templateUrl: 'modules/CBO/client/views/Work.client.view.html',
                controller: 'WorkController',
                access: { requiredAuthentication: true }
            }).
            state('index.WorkById', {
                url: '/Work/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Work.client.view.html',
                controller: 'WorkController',
                access: { requiredAuthentication: true }
            }).
            state('index.WorkList', {
                url: '/Work/List',
                templateUrl: 'modules/CBO/client/views/WorkList.client.view.html',
                controller: 'WorkListController',
                access: { requiredAuthentication: true }
            }).
            //部门
            state('index.Department', {
                url: '/Department/Edit',
                templateUrl: 'modules/CBO/client/views/Department.client.view.html',
                controller: 'DepartmentController',
                access: { requiredAuthentication: true }
            }).
            state('index.DepartmentById', {
                url: '/Department/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Department.client.view.html',
                controller: 'DepartmentController',
                access: { requiredAuthentication: true }
            }).
            state('index.DepartmentList', {
                url: '/Department/List',
                templateUrl: 'modules/CBO/client/views/DepartmentList.client.view.html',
                controller:'DepartmentListController',
                access: { requiredAuthentication: true }
            }).
            //工位
            state('index.WorkLocation', {
                url: '/WorkLocation/Edit',
                templateUrl: 'modules/CBO/client/views/WorkLocation.client.view.html',
                controller: 'WorkLocationController',
                access: { requiredAuthentication: true }
            }).
            state('index.WorkLocationById', {
                url: '/WorkLocation/Edit/:id',
                templateUrl: 'modules/CBO/client/views/WorkLocation.client.view.html',
                controller: 'WorkLocationController',
                access: { requiredAuthentication: true }
            }).
            state('index.WorkLocationList', {
                url: '/WorkLocation/List',
                templateUrl: 'modules/CBO/client/views/WorkLocationList.client.view.html',
                controller: 'WorkLocationListController',
                access: { requiredAuthentication: true }
            }).
            //工艺路线
            state('index.Routing', {
                url: '/Routing/Edit',
                templateUrl: 'modules/CBO/client/views/Routing.client.view.html',
                controller: 'RoutingController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoutingById', {
                url: '/Routing/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Routing.client.view.html',
                controller: 'RoutingController',
                access: { requiredAuthentication: true }
            }).
            state('index.RoutingList', {
                url: '/Routing/List',
                templateUrl: 'modules/CBO/client/views/RoutingList.client.view.html',
                controller: 'RoutingListController',
                access: { requiredAuthentication: true }
            }).
            //终端
            state('index.Terminal', {
                url: '/Terminal/Edit',
                templateUrl: 'modules/CBO/client/views/Terminal.client.view.html',
                controller: 'TerminalController',
                access: { requiredAuthentication: true }
            }).
            state('index.TerminalById', {
                url: '/Terminal/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Terminal.client.view.html',
                controller: 'TerminalController',
                access: { requiredAuthentication: true }
            }).
            state('index.TerminalList', {
                url: '/Terminal/List',
                templateUrl: 'modules/CBO/client/views/TerminalList.client.view.html',
                controller: 'TerminalListController',
                access: { requiredAuthentication: true }
            }).
            //交接区
            state('index.WareHouse', {
                url: '/WareHouse/Edit',
                templateUrl: 'modules/CBO/client/views/WareHouse.client.view.html',
                controller: 'WareHouseController',
                access: { requiredAuthentication: true }
            }).
            state('index.WareHouseById', {
                url: '/WareHouse/Edit/:id',
                templateUrl: 'modules/CBO/client/views/WareHouse.client.view.html',
                controller: 'WareHouseController',
                access: { requiredAuthentication: true }
            }).
            state('index.WareHouseList', {
                url: '/WareHouse/List',
                templateUrl: 'modules/CBO/client/views/WareHouseList.client.view.html',
                controller: 'WareHouseListController',
                access: { requiredAuthentication: true }
            }).
            //容器
            state('index.Container', {
                url: '/Container/Edit',
                templateUrl: 'modules/CBO/client/views/Container.client.view.html',
                controller: 'ContainerController',
                access: { requiredAuthentication: true }
            }).
            state('index.ContainerById', {
                url: '/Container/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Container.client.view.html',
                controller: 'ContainerController',
                access: { requiredAuthentication: true }
            }).
            state('index.ContainerList', {
                url: '/Container/List',
                templateUrl: 'modules/CBO/client/views/ContainerList.client.view.html',
                controller:'ContainerListController',
                access: { requiredAuthentication: true }
            }).
            //班次
            state('index.Shift', {
                url: '/Shift/Edit',
                templateUrl: 'modules/CBO/client/views/Shift.client.view.html',
                controller: 'ShiftController',
                access: { requiredAuthentication: true }
            }).
            state('index.ShiftById', {
                url: '/Shift/Edit/:id',
                templateUrl: 'modules/CBO/client/views/Shift.client.view.html',
                controller: 'ShiftController',
                access: { requiredAuthentication: true }
            }).
            state('index.ShiftList', {
                url: '/Shift/List',
                templateUrl: 'modules/CBO/client/views/ShiftList.client.view.html',
                controller:'ShiftListController',
                access: { requiredAuthentication: true }
            });
    }
]);
